<template>
  <div id="app" class="app">
    <loading v-show="loading"></loading>
    <router-view/>
  </div>
</template>

<script>
    import {mapState} from 'vuex'
    import Loading from './components/loading.vue'
    export default {
        computed:{
            ...mapState([
                'loading'
            ])
        },
        name: 'App',
        components: {
            Loading,
        }
    }
</script>
<style>
  #app {
    font-family: Helvetica, sans-serif;
    height: 100%;
  }
</style>
